package edu.sctu.jarime.june.day20150614.file;

import java.io.File;
import java.io.IOException;

/**
 * Created by user19 on 2015/6/14.
 */
public class KnowFlie {


    public void flie(String path_name1){
        File file = new File(path_name1);
        if (!file.exists()){
            file.mkdir();
        }

    }
    public void creat_flie(String path_name2){
        File file1= new File(path_name2);
        try {
            file1.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    /**
     * Created by user19 on 2015/6/14.
     */
    public static class PracticeMain {
        public static void main(String[] args) {
            //创建文件夹的主函数
            KnowFlie knowFlie = new KnowFlie();
            knowFlie.flie("D://lili");
            knowFlie.creat_flie("D://lili//lili.txt");

            //
        }
    }
}

